{template 'com/header'}
<link href="{$_W['siteroot']}app/themes/hoto_function/static/css/news.css" rel="stylesheet" type="text/css">
<style>#content .is_hidden{display: none;}</style>
<script>
	window.onload = function (){
		var oWin = document.getElementById("win");
		var oLay = document.getElementById("overlay");	
		var oBtn = document.getElementById("popmenu");
		var oClose = document.getElementById("close");
		oBtn.onclick = function (){
			oLay.style.display = "block";
			oWin.style.display = "block"	
		};
		oLay.onclick = function (){
			oLay.style.display = "none";
			oWin.style.display = "none"	
		}
	};
</script>
<body id="news">
	<div id="ui-header">
		<div class="fixed">
			<a class="ui-title" id="popmenu">选择分类</a>
			<a class="ui-btn-left_pre" href="javascript:history.go(-1)"></a>
			<a class="ui-btn-right_home" href="{if empty($_W['styles']['index_url'])}{php echo url('home/home')}{else}{$_W['styles']['index_url']}{/if}"></a>
		</div>
	</div>
	<div id="overlay" style="display: none;"></div>
	<div id="win" style="display: none;">
		<ul class="dropdown">
			{data module="site" func="site_category"}
				<li><a href="{$row['linkurl']}"><span>{$row['name']}</span></a></li>
			{/data}
			<div class="clr"></div>
		</ul>
	</div>
	<div class="Listpage">
		<div class="top46"></div>
		<div class="page-bizinfo">
			<div class="header" style="position: relative;">
				<h1 id="activity-name">{$detail['title']}</h1>
				<span id="post-date">{php echo date("Y-m-d", $detail['createtime']);}</span>
			</div>
			<a id="biz-link" class="btn" href="{if empty($_W['styles']['index_url'])}{php echo url('home/home')}{else}{$_W['styles']['index_url']}{/if}" data-transition="slide">
				<div class="arrow">
					<div class="icons arrow-r"></div>
				</div>
				<div class="logo">
					<div class="circle"></div>
					<img id="img" src="{$_W['account']['avatar']}">
				</div>
				<div id="nickname">{$_W['account']['name']}</div>
				<div id="weixinid">微信号:{$_W['account']['account']}</div>
			</a>
			<div class="text" id="content">
				{$detail['content']}
				<p><br></p><p><br></p>
			</div>
			<script>
				function dourl(url){
					location.href= url;
				}
			</script>
		</div>
		<div class="list">
			<div id="olload"><span>往期回顾</span></div>
			<div id="oldlist">
				<ul>
					{if empty($_W['styles']['relative_pagesize'])}
						{php $_W['styles']['relative_pagesize'] = 5}
					{/if}
					{data module="site" func="site_article" cid="$detail['pcate']" assign="result" return="true" limit="$_W['styles']['relative_pagesize']"}
					{loop $result['list'] $row}
					{if $row['id'] != $id}
						<li class="newsmore"><a href="{$row['linkurl']}"><div class="olditem"><div class="title">{$row['title']}</div></div></a></li>
					{/if}
					{/loop}
				</ul>
				<a class="more" href="{php echo url('site/site/list',array('cid' => $detail[pcate]))}">更多精彩内容</a>
			</div>
		</div>
		<a class="footer" href="#news" target="_self"><span class="top">返回顶部</span></a>
	</div>
	<div style="display:none"></div>
	<script>
		function displayit(n){
			for(i=0;i<4;i++){
				if(i==n){
					var id='menu_list'+n;
					if(document.getElementById(id).style.display=='none'){
						document.getElementById(id).style.display='';
						document.getElementById("plug-wrap").style.display='';
					}else{
						document.getElementById(id).style.display='none';
						document.getElementById("plug-wrap").style.display='none';
					}
				}else{
					if($('#menu_list'+i)){
						$('#menu_list'+i).css('display','none');
					}
				}
			}
		}
		function closeall(){
			var count = document.getElementById("top_menu").getElementsByTagName("ul").length;
			for(i=0;i<count;i++){
				document.getElementById("top_menu").getElementsByTagName("ul").item(i).style.display='none';
			}
			document.getElementById("plug-wrap").style.display='none';
		}
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
			WeixinJSBridge.call('hideToolbar');
		});
	</script>
{template 'com/footer'}